{
  "snapshot_label": "waiting_lists_project_snapshot_2026-10-29",
  "packaged_on": "2026-10-29",
  "source_repository": "https://github.com/diggydigsdata/msc-waiting-lists",
  "source_statistics": "https://www.health-ni.gov.uk/topics/hospital-waiting-times-statistics",
  "provenance_note": "Copied existing exported CSV tables and current preparation script. No fresh pipeline run or independent source reconciliation. Exact workbook inputs and dependency versions for the generating run are not recorded.",
  "date_dimension": {
    "first_quarter_ending": "2018-09-30",
    "last_quarter_ending": "2025-12-31",
    "quarters": 30
  },
  "verification": [
    "All dimension primary keys are populated and unique.",
    "All populated fact foreign keys resolve to packaged dimensions.",
    "Model files and QA CSVs match the source copies byte for byte."
  ],
  "tables": {
    "dim_comparability_window": {
      "row_count": 4,
      "column_count": 5,
      "columns": [
        "comparability_window_id",
        "comparability_flag",
        "start",
        "end",
        "purpose"
      ]
    },
    "dim_date": {
      "row_count": 30,
      "column_count": 8,
      "columns": [
        "date_id",
        "quarter_ending",
        "calendar_year",
        "calendar_quarter",
        "year_quarter_label",
        "fiscal_year_start",
        "fiscal_year_label",
        "is_encompass_snapshot"
      ]
    },
    "dim_domain": {
      "row_count": 3,
      "column_count": 4,
      "columns": [
        "domain_id",
        "domain",
        "domain_label",
        "domain_sort"
      ]
    },
    "dim_source_system": {
      "row_count": 2,
      "column_count": 3,
      "columns": [
        "source_system_id",
        "source_system",
        "source_system_sort"
      ]
    },
    "dim_specialty": {
      "row_count": 28,
      "column_count": 3,
      "columns": [
        "specialty_id",
        "domain",
        "specialty_simplified"
      ]
    },
    "dim_target_status": {
      "row_count": 3,
      "column_count": 4,
      "columns": [
        "target_status_id",
        "targets_column",
        "display_label",
        "severity_rank"
      ]
    },
    "dim_trust": {
      "row_count": 7,
      "column_count": 7,
      "columns": [
        "trust_id",
        "hsc_trust_reporting",
        "trust_geo_code",
        "trust_geo_name",
        "trust_geo_match_status",
        "trust_mapping_status",
        "trust_is_mapped"
      ]
    },
    "dim_wait_band": {
      "row_count": 24,
      "column_count": 8,
      "columns": [
        "wait_band_id",
        "domain",
        "grouped_wait_band",
        "wait_band_key",
        "grouped_wait_band_sort",
        "lower_weeks",
        "upper_weeks",
        "is_open_ended"
      ]
    },
    "fact_interpolated_quantiles_unified": {
      "row_count": 477,
      "column_count": 8,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "source_system_id",
        "interp_unseen_patients",
        "interp_median_weeks",
        "interp_p95_weeks",
        "quantile_method"
      ]
    },
    "fact_summary_by_date": {
      "row_count": 378,
      "column_count": 9,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "unseen_patients",
        "median_weeks",
        "p95_weeks",
        "interp_unseen_patients",
        "interp_median_weeks",
        "interp_p95_weeks"
      ]
    },
    "fact_summary_by_diagnostic": {
      "row_count": 6992,
      "column_count": 9,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "source_system_id",
        "diagnostic_service",
        "category",
        "unseen_patients",
        "diag_median_weeks",
        "diag_p95_weeks"
      ]
    },
    "fact_summary_by_specialty": {
      "row_count": 7977,
      "column_count": 11,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "specialty_id",
        "specialty",
        "unseen_patients",
        "median_weeks",
        "p95_weeks",
        "interp_unseen_patients",
        "interp_median_weeks",
        "interp_p95_weeks"
      ]
    },
    "fact_summary_by_specialty_targets": {
      "row_count": 8376,
      "column_count": 8,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "specialty_id",
        "target_status_id",
        "unseen_patients",
        "specialty_total_unseen",
        "target_share_within_specialty"
      ]
    },
    "fact_summary_by_specialty_targets_raw": {
      "row_count": 16677,
      "column_count": 10,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "source_system_id",
        "specialty_id",
        "target_status_id",
        "specialty",
        "unseen_patients",
        "specialty_total_unseen",
        "target_share_within_specialty"
      ]
    },
    "fact_wait_bands": {
      "row_count": 67365,
      "column_count": 13,
      "columns": [
        "date_id",
        "trust_id",
        "domain_id",
        "source_system_id",
        "specialty_id",
        "target_status_id",
        "wait_band_id",
        "comparability_window_id",
        "diagnostic_service",
        "category",
        "management",
        "programme_of_care",
        "unseen_patients"
      ]
    }
  },
  "files": [
    {
      "path": "README.md",
      "bytes": 5234,
      "sha256": "5418d1ee99a7a86f59191e7a9a688bd9d0946bb7a79bb836f44035c4909e0c66"
    },
    {
      "path": "data_dictionary.csv",
      "bytes": 19661,
      "sha256": "3fa687a17c83aaf9ee199b19faeae9b59b05ee04efa5a799d2e79702d8018201"
    },
    {
      "path": "model/dim_comparability_window.csv",
      "bytes": 385,
      "sha256": "040f2a694e041bc61ce54534db3b82d642a2e63a378857261b964e77562a35f4"
    },
    {
      "path": "model/dim_date.csv",
      "bytes": 1601,
      "sha256": "837a5e6e7d3f545750d0eb17126f7d0ce2612921f861d3dd88668d29148854c4"
    },
    {
      "path": "model/dim_domain.csv",
      "bytes": 141,
      "sha256": "7c722d2d6202dc7dcfbec87a976b50c1dd8c23a8bc4c7d0a5bebf9b95f6cfe71"
    },
    {
      "path": "model/dim_source_system.csv",
      "bytes": 85,
      "sha256": "644e74326b56deed935a029aa63c85aa3475cbfaf39a9a6fa8871d6e99099015"
    },
    {
      "path": "model/dim_specialty.csv",
      "bytes": 1081,
      "sha256": "9b160c3ae45685dd2b67bc6cd21ee48703632844065e6b3c733d33d18d2d4a42"
    },
    {
      "path": "model/dim_target_status.csv",
      "bytes": 154,
      "sha256": "b94c92da83a887e292e1c48d49f485cc05c8cf5964d740a370254d776703adeb"
    },
    {
      "path": "model/dim_trust.csv",
      "bytes": 709,
      "sha256": "dc456b495edf959d451bdacdf3b42cb356f20ea0be0f4dfb97927e862997c7d9"
    },
    {
      "path": "model/dim_wait_band.csv",
      "bytes": 1407,
      "sha256": "1a224003ead9dea2a32b93ee7aa17cdef085c3a445648f176b4a54ad054ebc25"
    },
    {
      "path": "model/fact_interpolated_quantiles_unified.csv",
      "bytes": 33175,
      "sha256": "56bb6934816562e9ed9f4493c39637baf2d061ca133cb1fc09509a055dbaf67c"
    },
    {
      "path": "model/fact_summary_by_date.csv",
      "bytes": 15410,
      "sha256": "4d16d05da42e8a376abd41aa382b13cebabe9e7751a7196a50205498237c1dfc"
    },
    {
      "path": "model/fact_summary_by_diagnostic.csv",
      "bytes": 507052,
      "sha256": "b0130b6213b35bfa5e1f89bb9eee614de6a33b0e01fccc032a7aff02c6c3a70b"
    },
    {
      "path": "model/fact_summary_by_specialty.csv",
      "bytes": 464760,
      "sha256": "092bcd38a604d370c816a8245903de6c4901486795623833bb6eda6cd2b71a4c"
    },
    {
      "path": "model/fact_summary_by_specialty_targets.csv",
      "bytes": 318727,
      "sha256": "4150e241700eff65de48c7ceabe257bcf398076fd13de7c8078ef838b1f701f8"
    },
    {
      "path": "model/fact_summary_by_specialty_targets_raw.csv",
      "bytes": 852181,
      "sha256": "8235d691900408b891cf761a07303471a0ddc0745f04100b2eb7ded38d0798aa"
    },
    {
      "path": "model/fact_wait_bands.csv",
      "bytes": 3530590,
      "sha256": "2d26eefba14463889d8627b37c85215c71f137093a3850065d9e8ead54e9d5f5"
    },
    {
      "path": "qa/decision_log.csv",
      "bytes": 5256,
      "sha256": "0ba5a982f14688520bf62c95a64a7e6d71310abfe6e258e05d930cb6edf93f0c"
    },
    {
      "path": "qa/redundant_verification.csv",
      "bytes": 2464,
      "sha256": "dfeddd6bd8635c300246e490df25e487898d770afdfef40122f6e23a24cf687c"
    },
    {
      "path": "qa/transition_completeness_flags.csv",
      "bytes": 48220,
      "sha256": "8d6ecd015d8c8134558ae5bf9b6f34840a9806fe752fa83f3614a738e49ab911"
    },
    {
      "path": "scripts/pipeline.py",
      "bytes": 143418,
      "sha256": "26eacb792fcb954324fc444533041938114a4be11969607931eeb24c80ccb8c7"
    }
  ],
  "hash_scope": "All listed package members. Excludes manifest.json itself and the outer ZIP. scripts/pipeline.py is served separately under assets/scripts/waiting_lists on the website.",
  "pipeline_script_updated_on": "2026-11-02",
  "pipeline_change_note": "Startup and missing-count handling corrected. Model and QA tables remain unchanged historical outputs; rebuild from the original workbooks to regenerate them."
}
